package com.st.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.st.common.utils.PageUtils;
import com.st.mall.product.entity.CategoryBrandRelationEntity;
import com.st.mall.product.vo.CategoryBrandRelationVo;

import java.util.List;
import java.util.Map;

/**
 * 品牌分类关联
 *
 * @author fg
 * @email f@163.com
 * @date 2023-02-26 20:46:23
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     *
     * @param brandId 品牌id
     * @return  获取品牌关联的分类
     */
    List<CategoryBrandRelationVo> getCateLogList(Long brandId);

    /**
     *
     * @param categoryBrandRelationEntity 包含brandId,catelogId
     */
    void saveCas(CategoryBrandRelationEntity categoryBrandRelationEntity);

    /**
     * 获取分类关联的品牌
     * @param catId 分类id
     * @return List
     */
    List<CategoryBrandRelationEntity> getRelationList(Long catId);
}

